package com.example.service.commodity.Impl;

import com.example.mapper.commodity.ImportMapper;
import com.example.mapper.commodity.ScrapMapper;
import com.example.pojo.stock.Product_import;
import com.example.pojo.stock.Product_scrap;
import com.example.service.commodity.ScrapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * com.example.service.commodity
 *
 * @author foam
 * create 2020-12-19
 **/
@Service
public class ScrapServiceImpl implements ScrapService {

    @Autowired
    private ScrapMapper scrapMapper;

    @Override
    public List<Product_scrap> queryAll() {
        return scrapMapper.queryAll();
    }

    @Override
    public Product_scrap queryByDate(String date) {
        return scrapMapper.queryByDate(date);
    }

    @Override
    public int insertScrap(Product_scrap product_scrap) {
        return scrapMapper.insertScrap(product_scrap);
    }
}
